/**
 * 
 */
package pl.kane.autokomp.applications;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JToolBar;

/**
 * @author Lukasz Wator
 *
 */
public class ToolBar extends JToolBar {
	
	
	
	public ToolBar() {
		super();
		createToolBar();
	}

	public ToolBar(int orientation) {
		super(orientation);
		createToolBar();
	}

	public ToolBar(String name, int orientation) {
		super(name, orientation);
		createToolBar();
	}

	public ToolBar(String name) {
		super(name);
		createToolBar();
	}

	protected void createToolBar() {
	    ImageIcon iconNew = new ImageIcon("pl/kane/autokomp/resources/new.gif");
	    Action actionNew = new AbstractAction("New", iconNew) {
	      public void actionPerformed(ActionEvent e) {
	        ;
	      }
	    };
	    ImageIcon iconOpen = new ImageIcon("pl/kane/autokomp/resources/open.gif");
	    Action actionOpen = new AbstractAction("Open...", iconOpen) {
	      public void actionPerformed(ActionEvent e) {
	      }
	    };
	    ImageIcon iconSave = new ImageIcon("pl/kane/autokomp/resources/save.gif");
	    Action actionSave = new AbstractAction("Save...", iconSave) {
	      public void actionPerformed(ActionEvent e) {
	      }
	    };
	    Action actionExit = new AbstractAction("Exit") {
	      public void actionPerformed(ActionEvent e) {
	        System.exit(0);
	      }
	    };
	    
	  

	    ActionListener fontListener = new ActionListener() {
	      public void actionPerformed(ActionEvent e) {
	      }
	    };

	    addSeparator();
	    

	  }

}
